package com.snowfield.lb47.lbconfig.mapper;

import com.snowfield.lb47.lbconfig.domain.HttpCheckParam;

import java.util.List;

/**
 * HTTP检测参数Mapper接口
 *
 * @author snowfield
 * @date 2024-05-28
 */
public interface HttpCheckParamMapper {
    /**
     * 查询HTTP检测参数
     *
     * @param id HTTP检测参数主键
     * @return HTTP检测参数
     */
    public HttpCheckParam selectHttpCheckParamById(Long id);

    /**
     * 查询HTTP检测参数列表
     *
     * @param httpCheckParam HTTP检测参数
     * @return HTTP检测参数集合
     */
    public List<HttpCheckParam> selectHttpCheckParamList(HttpCheckParam httpCheckParam);

    /**
     * 新增HTTP检测参数
     *
     * @param httpCheckParam HTTP检测参数
     * @return 结果
     */
    public int insertHttpCheckParam(HttpCheckParam httpCheckParam);

    /**
     * 修改HTTP检测参数
     *
     * @param httpCheckParam HTTP检测参数
     * @return 结果
     */
    public int updateHttpCheckParam(HttpCheckParam httpCheckParam);

    /**
     * 删除HTTP检测参数
     *
     * @param id HTTP检测参数主键
     * @return 结果
     */
    public int deleteHttpCheckParamById(Long id);

    /**
     * 批量删除HTTP检测参数
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteHttpCheckParamByIds(Long[] ids);

    /**
     * 根据HTTP检测参数名称查询HTTP检测参数
     *
     * @param paramName HTTP检测参数名称
     * @return 结果
     */
    public HttpCheckParam selectHttpCheckParamByName(String paramName);

    /**
     * 判断检测参数分配到前端代理的数量
     *
     * @param paramId 参数标识ID
     * @return 结果
     */
    public int usedHttpCheckParamCount(Long paramId);
}
